package design.action.mediator;

/**
 * @author zxs
 * @since 2020/05/27
 */
public class ConcreteColleague1 extends AbstractColleague{
    public ConcreteColleague1(String name, Mediator mediator) {
        super(name, mediator);
    }

    @Override
    public void sendMessage(String msg) {
        getMediator().sendMessage(msg,this);
        System.out.println("colleague1 do something");
    }

    @Override
    public void sendMessage(String target, String msg) {
       getMediator().sendMessage(target,msg);
        System.out.println("colleague1 do something");
    }
}
